package com.kgc.api.buylimit;
import com.kgc.bean.DiscountTrick;
import com.kgc.bean.User;
import com.kgc.util.ReturnResult;
import io.swagger.models.auth.In;

import java.util.List;


public interface CouponApi {


    boolean addDiscountTrick(DiscountTrick discountTrick);

    ReturnResult<String> userAddDiscountTrick(Integer userId, Integer discountTrickId);

    boolean checkonly(Integer userId, Integer discountTrickId);

    List<DiscountTrick> getEnableDiscountTrick();

    User selectInfobyId(Integer userId);
    /**
    *@ClassName: CouponApi
    *@Description 通过优惠卷id查询优惠金额
    *@Author lzy
    *@Date 2021/6/25
    */
    DiscountTrick querySelectDiscountTrickById(Integer id);

    /**
    *@ClassName: CouponApi
    *@Description 判断用户是否有该优惠卷
    *@Author lzy
    *@Date 2021/6/29
    */

    boolean justyUserUsedDiscount(Integer userId,Integer discountId);



}
